package org.zlb.manager.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Objects;

/**
 * TODO
 *
 * @author zhoulingbo
 * @date 2021/8/10 12:28
 */
public class FunParamPK implements Serializable {
    private String paramGroup;
    private String paramKey;

    @Column(name = "PARAM_GROUP")
    @Id
    public String getParamGroup() {
        return paramGroup;
    }

    public void setParamGroup(String paramGroup) {
        this.paramGroup = paramGroup;
    }

    @Column(name = "PARAM_KEY")
    @Id
    public String getParamKey() {
        return paramKey;
    }

    public void setParamKey(String paramKey) {
        this.paramKey = paramKey;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FunParamPK that = (FunParamPK) o;
        return Objects.equals(paramGroup, that.paramGroup) &&
                Objects.equals(paramKey, that.paramKey);
    }

    @Override
    public int hashCode() {
        return Objects.hash(paramGroup, paramKey);
    }
}
